//
//  Comman.swift
//  weibo飞飞
//
//  Created by 田侠飞 on 16/6/26.
//  Copyright © 2016年 田侠飞. All rights reserved.
//

import UIKit
let  APPKEY = "3517187157"
let REDIRECT_URI = "http://www.baidu.com"
let APPSecret = "4613e2d4f281a1ab2a2caaa9beee2e48"
let SwitchRootVcNotification = "SwitchRootVcNotification"

let EmoticonDeleteNoti = "EmoticonDeleteNoti"
// 表情键盘表情按钮通知
let EmoticonButtonNoti = "EmoticonButtonNoti"


let SCREENW =  UIScreen.mainScreen().bounds.width

let SCREENH =  UIScreen.mainScreen().bounds.height


let ThemeColor = UIColor.orangeColor()
/// RGB
func RBG(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}
/// 随机颜色
//func RandomColor() -> UIColor{
//    let r = CGFloat(random()%256)
//    let g = CGFloat(random()%256)
//    let b = CGFloat(random()%256)
//    return RBG(r, green: g, blue: b)
//}